extends layout

block content
  h1  图片分享
  .row
    .col-12.col-md-8
      .card.md-1.mb-1
        form(action="/images/",method='post',enctype='multipart/from-data')
          .form-group.row
            label.col-12.col-md-2 浏览
            input.col-12.col-sm-10.form-contral-file(type='file',name='imgfile')
          .form-group.row
            label.col-12.col-md-2 标题
            input.col-12.col-md-8.form-contral(type='text',name='title')
          .form-group.row
            label.col-12.col-md-2 描述
            input.col-12.col-md-8.form-contral(type='text',name='description')
          .form-group.row
            .col-12.offset-md-8.col-md-4
              button.btn-primary.btn-block(type='submit') 提交
    .col-12.col-md-4
      .card.mt-1.mb-1
        .card-body
          h4.card-title 图片统计
          p 这里放图片统计信息
    .row 
     .rol-12.col-md-8
      .row
        each image in images
          a.col-6.col-md-4(href=`/images/${image._id}`)
            .card
              img.card-img-top(src=`/uploads/${image.diskfilename}`, alt=image.title)
              .card-body
                h5.card-title= image.title
                p.card-text= image.description
  
  
  
  
  
  
  
  
  //- form(action='')
  //-   .form-group
  //-     label(for='email')邮箱
  //-     input.form-control#email(type='email',placeholder='请输入邮箱地址')
  //-     small.form-text.text-muted 我们不会展示你的邮箱
  //-   .form-group
  //-     label(for='password')密码
  //-     input.form-control.password(type='password',placeholder='请输入密码')
  //-   .form-group
  //-     input.from-check-input#check(type="checkbox")
  //-     label.from-check-label(for='exampleCheck')记住密码
  //-   button.btn-primary(typr='submit')提交
